package com.quick.system.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.quick.system.mapper.SysOperateLogMapper;
import com.quick.system.domain.SysOperateLog;
import com.quick.system.service.SysOperateLogService;

/**
 * 操作日志Service业务层处理
 * 
 * @Author: 吃素不吃肉
 * @Date: Tue Jul 25 14:14:44 CST 2023
 */
@Service
public class SysOperateLogServiceImpl implements SysOperateLogService {
    @Autowired
    private SysOperateLogMapper sysOperateLogMapper;

    /**
     * 查询操作日志
     * 
     * @param operateId 操作日志主键
     * @return 操作日志
     */
    @Override
    public SysOperateLog selectSysOperateLogByOperateId(Long operateId)
    {
        return sysOperateLogMapper.selectSysOperateLogByOperateId(operateId);
    }

    /**
     * 查询操作日志列表
     * 
     * @param sysOperateLog 操作日志
     * @return 操作日志
     */
    @Override
    public List<SysOperateLog> selectSysOperateLogList(SysOperateLog sysOperateLog)
    {
        return sysOperateLogMapper.selectSysOperateLogList(sysOperateLog);
    }

    /**
     * 新增操作日志
     * 
     * @param sysOperateLog 操作日志
     * @return 结果
     */
    @Override
    public int insertSysOperateLog(SysOperateLog sysOperateLog)
    {
        return sysOperateLogMapper.insertSysOperateLog(sysOperateLog);
    }

    /**
     * 修改操作日志
     * 
     * @param sysOperateLog 操作日志
     * @return 结果
     */
    @Override
    public int updateSysOperateLog(SysOperateLog sysOperateLog)
    {
        return sysOperateLogMapper.updateSysOperateLog(sysOperateLog);
    }

    /**
     * 批量删除操作日志
     * 
     * @param operateIds 需要删除的操作日志主键
     * @return 结果
     */
    @Override
    public int deleteSysOperateLogByOperateIds(Long[] operateIds)
    {
        return sysOperateLogMapper.deleteSysOperateLogByOperateIds(operateIds);
    }

    /**
     * 删除操作日志信息
     * 
     * @param operateId 操作日志主键
     * @return 结果
     */
    @Override
    public int deleteSysOperateLogByOperateId(Long operateId)
    {
        return sysOperateLogMapper.deleteSysOperateLogByOperateId(operateId);
    }

    /**
     * 清空操作日志
     */
    @Override
    public void cleanOperateLog() {
        sysOperateLogMapper.cleanOperateLog();
    }
}
